#ifndef CHECKSENTRY_H
#define CHECKSENTRY_H

#include <QDialog>
#include <QtGui/QMessageBox>
#include <QtSql/QSqlQuery>
#include <QtSql/QSqlTableModel>

namespace Ui {
    class CheckSentry;
}

enum {
    Student_ID      = 0,
    Student_Number  = 1,
    Student_Class   = 2,
    Student_Name    = 3,
    Student_Sentry1 = 4,
    Student_Sentry2 = 5,
    Student_Sentry3 = 6,
    Student_Sentry4 = 7,
    Student_SentryT = 8,
    Student_SentryP = 9
};

class CheckSentry : public QDialog
{
    Q_OBJECT

public:
    explicit CheckSentry(QWidget *parent = 0);
    ~CheckSentry();

private:
    Ui::CheckSentry *ui;
    QSqlTableModel *tableModel;
    void loadView();
};

#endif // CHECKSENTRY_H
